import { defineStore } from 'pinia'
import { ref } from 'vue'

// 注意 别名不能冲突
export const useCountStore = defineStore('count', () => {
  const count = ref(100)
  const addCount = n => {
    count.value += n
  }

  return {
    count,
    addCount
  }
})
